<?php
header( 'Expires: Mon, 26 Jul 1970 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' ); //兼容http1.0和https
require_once("Page.php");

switch ($action)
{
case "get_feeds":
  require_once("Feed.php");
  break; 
default:
  $page= new Page(false,"Error Request");
  echo json_encode($page);
  die();
  break;
}

$page= new Page(true,"ok",$date);
$json_page = json_encode($page);

echo $json_page;

?>